package com.yzpass.api.user.dto;

import com.yzpass.api.user.entity.User;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class UserPassResetDTO {
    private String userId;

    private String username;


    private String name;


    private String password;


    public static UserPassResetDTO fromUser(User user){
        UserPassResetDTO dto = new UserPassResetDTO();
        dto.setUserId(user.getUserId().toString());
        dto.setUsername(user.getUsername());
        dto.setName(user.getName());
        return dto;
    }
}
